<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//];
use think\Route;
/**
 * 注册路由规则
 * @access public
 * @param string|array $rule    路由规则
 * @param string       $route   路由地址
 * @param string       $type    请求类型
 * @param array        $option  路由参数
 * @param array        $pattern 变量规则
 * @return void
 */
//Route::rule('getReadDate', 'index/Ip/getReadDate');
/**
 * 注册子域名部署规则
 * @access public
 * @param string|array $domain  子域名
 * @param mixed        $rule    路由规则
 * @param array        $option  路由参数
 * @param array        $pattern 变量规则
 * @return void
 */

Route::domain('wiki.jiamengshenmehao.com', 'index/brand/detail'); // 百科域名
Route::domain('canyin.jiamengshenmehao.com', 'index/brand/index/cid/2'); // 餐饮
Route::domain('jiaoyu.jiamengshenmehao.com', 'index/brand/index/cid/3'); // 教育
Route::domain('muying.jiamengshenmehao.com', 'index/brand/index/cid/4'); // 母婴
Route::domain('meirong.jiamengshenmehao.com', 'index/brand/index/cid/5'); // 美容
Route::domain('fuzhuang.jiamengshenmehao.com', 'index/brand/index/cid/6'); // 服装
Route::domain('jiudian.jiamengshenmehao.com', 'index/brand/index/cid/7'); // 酒店
Route::domain('lingshou.jiamengshenmehao.com', 'index/brand/index/cid/8'); // 零售
Route::domain('jiaju.jiamengshenmehao.com', 'index/brand/index/cid/9'); // 家居
Route::domain('shipin.jiamengshenmehao.com', 'index/brand/index/cid/10'); // 饰品
Route::domain('ganxi.jiamengshenmehao.com', 'index/brand/index/cid/11'); // 干洗
Route::domain('huanbao.jiamengshenmehao.com', 'index/brand/index/cid/12'); // 环保
Route::domain('jiancai.jiamengshenmehao.com', 'index/brand/index/cid/13'); // 建材
Route::domain('qiche.jiamengshenmehao.com', 'index/brand/index/cid/14'); // 汽车
Route::domain('jiafang.jiamengshenmehao.com', 'index/brand/index/cid/15'); // 家纺
Route::domain('jiushui.jiamengshenmehao.com', 'index/brand/index/cid/16'); // 酒水
Route::domain('xinxing.jiamengshenmehao.com', 'index/brand/index/cid/17'); // 新兴
Route::domain('wujin.jiamengshenmehao.com', 'index/brand/index/cid/18'); // 五金
Route::domain('jianshen.jiamengshenmehao.com', 'index/brand/index/cid/19'); // 健身
Route::domain('spin.jiamengshenmehao.com', 'index/brand/index/cid/20'); // 食品
Route::domain('chaoshi.jiamengshenmehao.com', 'index/brand/index/cid/21'); // 超市
Route::domain('yule.jiamengshenmehao.com', 'index/brand/index/cid/22'); // 娱乐
Route::domain('shuma.jiamengshenmehao.com', 'index/brand/index/cid/23'); // 数码
Route::domain('chongwu.jiamengshenmehao.com', 'index/brand/index/cid/24'); // 宠物
Route::domain('sannong.jiamengshenmehao.com', 'index/brand/index/cid/25'); // 三农




